package com.itfreer.xjmh.different.entity;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

import com.itfreer.form.api.entity.EntityBase;
import com.itfreer.form.api.reflect.DictionaryField;

import javax.persistence.*;

/**
 * 定义人脸识别设备证件识别数据采集记录表实体
 */
@Entity(name = "f_face_discern")
public class FacediscernEntity extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@Id
	@Column(name = "id", length = 50, nullable = true)
	private String id;

	/**
	 * 所属机场
	 */
	@Column(name = "airport", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "zd_airport", toFieldName = "airportName")
	private String airport;

	@Transient
	private String airportName;

	/**
	 * 通道
	 * */
	@Column(name = "channel", length = 50, nullable = true)
	private String channel;

	/**
	 * 记录日期
	 */
	@Column(name = "record_date", nullable = true)
	private java.util.Date recorddate;

	/**
	 * 受检人员
	 */
	@Column(name = "subjects", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "cms_sjry", toFieldName = "subjectsName")
	private String subjects;

	@Transient
	private String subjectsName;

	/**
	 * 证件识别
	 */
	@Column(name = "recognition", length = 50, nullable = true)
	private String recognition;

	/**
	 * 受检人数
	 */
	@Column(name = "subject_count", nullable = true)
	private Integer subjectcount;

	/**
	 * 验证总时间
	 */
	@Column(name = "total_time", nullable = true)
	private java.util.Date totaltime;

	/**
	 * 人脸识别设备
	 */
	@Column(name = "recognition_device", length = 50, nullable = true)
	private String recognitiondevice;

	/**
	 * 安全阈值
	 */
	@Column(name = "threshold_value", length = 50, nullable = true)
	private String thresholdvalue;

	/**
	 * 通过率
	 */
	@Column(name = "pass_rate", length = 50, nullable = true)
	private String passrate;

	/**
	 * 设备运行状况
	 */
	@Column(name = "running_status", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "cms_tdyxzk", toFieldName = "runningstatusName")
	private String runningstatus;

	@Transient
	private String runningstatusName;

	/**
	 * 证件识别通道运行状况
	 */
	@Column(name = "recognition_status", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "cms_tdyxzk", toFieldName = "recognitionstatusName")
	private String recognitionstatus;

	@Transient
	private String recognitionstatusName;

	/**
	 * 备注1
	 */
	@Column(name = "running_remark", length = 255, nullable = true)
	private String runningremark;

	/**
	 * 备注2
	 */
	@Column(name = "recognition_remark", length = 255, nullable = true)
	private String recognitionremark;

	@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
	@JoinColumn(name = "record_id")
	@OrderBy("serial_number asc")
	private Set<FacediscernDifferentEntity> record = new LinkedHashSet<FacediscernDifferentEntity>();

	public Set<FacediscernDifferentEntity> getRecord() {
		return record;
	}

	public void setRecord(Set<FacediscernDifferentEntity> record) {
		this.record = record;
	}

	/**
	 * 主键ID
	 */
	public String getId() {
		return id;
	}

	/**
	 * 主键ID
	 */
	public void setId(String value) {
		this.id = value;
	}

	/**
	 * 所属机场
	 */
	public String getAirport() {
		return airport;
	}

	/**
	 * 所属机场
	 */
	public void setAirport(String value) {
		this.airport = value;
	}

	@Transient
	public String getAirportName() {
		return airportName;
	}

	public void setAirportName(String airportName) {
		this.airportName = airportName;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	/**
	 * 记录日期
	 */
	public java.util.Date getRecorddate() {
		return recorddate;
	}

	/**
	 * 记录日期
	 */
	public void setRecorddate(java.util.Date value) {
		this.recorddate = value;
	}

	/**
	 * 受检人员
	 */
	public String getSubjects() {
		return subjects;
	}

	/**
	 * 受检人员
	 */
	public void setSubjects(String value) {
		this.subjects = value;
	}

	/**
	 * 受检人员
	 */
	@Transient
	public String getSubjectsName() {
		return subjectsName;
	}

	/**
	 * 受检人员
	 */
	public void setSubjectsName(String value) {
		this.subjectsName = value;
	}

	/**
	 * 证件识别
	 */
	public String getRecognition() {
		return recognition;
	}

	/**
	 * 证件识别
	 */
	public void setRecognition(String value) {
		this.recognition = value;
	}

	/**
	 * 受检人数
	 */
	public Integer getSubjectcount() {
		return subjectcount;
	}

	/**
	 * 受检人数
	 */
	public void setSubjectcount(Integer value) {
		this.subjectcount = value;
	}

	/**
	 * 验证总时间
	 */
	public java.util.Date getTotaltime() {
		return totaltime;
	}

	/**
	 * 验证总时间
	 */
	public void setTotaltime(java.util.Date value) {
		this.totaltime = value;
	}

	/**
	 * 人脸识别设备
	 */
	public String getRecognitiondevice() {
		return recognitiondevice;
	}

	/**
	 * 人脸识别设备
	 */
	public void setRecognitiondevice(String value) {
		this.recognitiondevice = value;
	}

	/**
	 * 安全阈值
	 */
	public String getThresholdvalue() {
		return thresholdvalue;
	}

	/**
	 * 安全阈值
	 */
	public void setThresholdvalue(String value) {
		this.thresholdvalue = value;
	}

	/**
	 * 通过率
	 */
	public String getPassrate() {
		return passrate;
	}

	/**
	 * 通过率
	 */
	public void setPassrate(String value) {
		this.passrate = value;
	}

	/**
	 * 设备运行状况
	 */
	public String getRunningstatus() {
		return runningstatus;
	}

	/**
	 * 设备运行状况
	 */
	public void setRunningstatus(String value) {
		this.runningstatus = value;
	}

	/**
	 * 设备运行状况
	 */
	@Transient
	public String getRunningstatusName() {
		return runningstatusName;
	}

	/**
	 * 设备运行状况
	 */
	public void setRunningstatusName(String value) {
		this.runningstatusName = value;
	}

	/**
	 * 证件识别通道运行状况
	 */
	public String getRecognitionstatus() {
		return recognitionstatus;
	}

	/**
	 * 证件识别通道运行状况
	 */
	public void setRecognitionstatus(String value) {
		this.recognitionstatus = value;
	}

	/**
	 * 证件识别通道运行状况
	 */
	@Transient
	public String getRecognitionstatusName() {
		return recognitionstatusName;
	}

	/**
	 * 证件识别通道运行状况
	 */
	public void setRecognitionstatusName(String value) {
		this.recognitionstatusName = value;
	}

	/**
	 * 备注1
	 */
	public String getRunningremark() {
		return runningremark;
	}

	/**
	 * 备注1
	 */
	public void setRunningremark(String value) {
		this.runningremark = value;
	}

	/**
	 * 备注2
	 */
	public String getRecognitionremark() {
		return recognitionremark;
	}

	/**
	 * 备注2
	 */
	public void setRecognitionremark(String value) {
		this.recognitionremark = value;
	}

}
